#include <gtest/gtest.h>
#include <iostream>
#include "Data.h"
#include "Variable.h"
#include "Expression.h"
#include <cassert>
#include "DataHolderGarbageCollector.h"

using namespace std;

int main(int argc, char **argv) {
	
	testing::InitGoogleTest(&argc, argv);
	int returnValue = RUN_ALL_TESTS();
	
	DHGC->collectGarbage();
	
	assert(Variable::getNrOfInstances() == 0);
	assert(Expression::getNrOfInstances() == 0);
	assert(Data::getNrOfInstances() == 0);
	
	return returnValue;
}